/* Copyright © 2006 Sarp Arda Coskun.
* Contact e-mail: sacoskun@gmail.com

* This file is part of simpleP2P.

* simpleP2P is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License

* simpleP2P is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.

* You should have received a copy of the GNU General Public License
* along with AndPishti.  If not, see <http://www.gnu.org/licenses/>.
*/

/*
 * File Searched
 * Just to define the searched file structure.

 * Author: Sarp Arda Coskun - 20201238
 * Date: 18 October 2006 with Eclipse 3.1
 * Version: 0.1 (Beta)
 * Tested on : 20 October 2006 with SuSE 10.0 Linux
 */

public class FileSearched
{
	String userName;
	String ipAddress;
	int portNumber;
	String fileName;
	int fileSize;
	
	public FileSearched(String userName, String ipAddress, int portNumber, String fileName, int fileSize)
	{
		setUserName(userName);
		setIpAddress(ipAddress);
		setPortNumber(portNumber);
		setFileName(fileName);
		setFileSize(fileSize);
	}
	
	private void setUserName(String s)
	{
		userName = s;
	}
	private void setIpAddress(String s)
	{
		ipAddress = s;
	}
	private void setPortNumber(int s)
	{
		portNumber = s;
	}
	private void setFileName(String s)
	{
		fileName = s;
	}
	private void setFileSize(int s)
	{
		fileSize = s;
	}
	public String getUserName()
	{
		return userName;
	}
	public String getIpAddress()
	{
		return ipAddress;
	}
	public int getPortNumber()
	{
		return portNumber;
	}
	public String getFileName()
	{
		return fileName;
	}
	public int getFileSize()
	{
		return fileSize;
	}
	
	
}

